<?php

use Illuminate\Database\Seeder;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        \App\Models\User::create([
            'type'              =>              'system',
            'lv'                =>              '1',
            'name'              =>              'root',
            'realName'          =>              'Root',
            'thumb'             =>              config('imgUpdate.memberDefault'),
            'email'             =>              'root@root.com',
            'phone'             =>              '',
            'verify'            =>              1,
            'verifyTime'        =>              \Carbon\Carbon::create(),
            'groupID'           =>              1,
            'password'          =>              bcrypt('123123')
        ]);

        \App\Models\AdminGroup::create([
            'name'              =>              '超级管理员',
            'lv'                =>              '1',
            'color'             =>              '#c41313',
            'permissions'       =>              NULL
        ]);

        \App\Models\MemberGroup::create([
            'id'                =>              '10001',
            'name'              =>              '会员',
            'lv'                =>              '0',
            'color'             =>              '#c41313',
            'permissions'       =>              NULL
        ]);
    }
}
